/**
 * Created by Freeman on 2016/8/9.
 */
import React, {PropTypes} from 'react'

const Like = ({isLike, likeCount, toggleLike}) => {


    return (
        <div className="article-share clearfix">
            <a href="javascript:;" className={isLike?'like-btn note-liked':'like-btn'}
               onClick={toggleLike}>
            <span className="like-content">
                <i className={isLike?'fa fa-heart':'fa fa-heart-o'}></i>  喜欢
            </span>
                <span className="like-count">{ likeCount }</span>
            </a>
        </div>
    )
};

Like.propTypes = {
    isLike: PropTypes.bool,
    likeCount: PropTypes.number,
    toggleLike: PropTypes.func.isRequired
};

export default Like;